package com.example.springbootsenior.StrategyMode.service.strategy;

import com.example.springbootsenior.StrategyMode.annotation.PayType;
import com.example.springbootsenior.StrategyMode.enums.PayTypeEnum;
import com.example.springbootsenior.StrategyMode.service.PayService;
import org.springframework.stereotype.Service;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2021/11/24 20:51
 */
@PayType(value = PayTypeEnum.ALI)
@Service
public class AliPayServiceStrategy implements PayService {
    /**
     * 支付
     */
    @Override
    public void pay() {
        System.out.println("支付宝支付成功");
    }
}
